package org.adorsys.aderp.orga.service;

import java.util.List;

import org.adorsys.aderp.orga.domain.OrgaPerson;
import org.adorsys.aderp.orga.domain.OrgaRelation;
import org.adorsys.aderp.orga.domain.OrgaRelationRole;
import org.springframework.data.domain.Page;
import org.springframework.roo.addon.layers.service.RooService;

@RooService(domainTypes = { org.adorsys.aderp.orga.domain.OrgaRelation.class })
public interface OrgaRelationService {
	
	List<OrgaRelation> findByPerson(OrgaPerson person);
	
	List<OrgaRelation> findByTargetPerson(OrgaPerson person);

	Page<OrgaRelation> findByPersonPage(OrgaPerson person,Integer page, Integer size);

	Page<OrgaRelation> findByTargetPersonPage(OrgaPerson person,Integer page, Integer size);

	Page<OrgaRelation> searchOrgaRelations(OrgaPerson person, OrgaPerson targetPerson, OrgaRelationRole relationRole,Integer page, Integer size);

}
